package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 推送日志对象 tb_push_log
 * 
 * @author 那吉德
 * @date 2025-02-20
 */
public class TbPushLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long logId;

    /** ip地址 */
    @Excel(name = "ip地址")
    private String ip;

    /** 推送人 */
    @Excel(name = "推送人")
    private String name;

    /** 时间戳 */
    @Excel(name = "时间戳")
    private String timestamp;

    /** token */
    @Excel(name = "token")
    private String token;

    /** 机构代码 */
    @Excel(name = "机构代码")
    private String institutionCode;

    /** 报送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 接受返回报文时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "接受返回报文时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 指标名称 */
    @Excel(name = "指标名称")
    private String dataName;

    /** 推送数量 */
    @Excel(name = "推送数量")
    private String dataCount;

    /** 返回码 */
    @Excel(name = "返回码")
    private String code;

    /** 返回信息 */
    @Excel(name = "返回信息")
    private String msg;

    public void setLogId(Long logId) 
    {
        this.logId = logId;
    }

    public Long getLogId() 
    {
        return logId;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setTimestamp(String timestamp) 
    {
        this.timestamp = timestamp;
    }

    public String getTimestamp() 
    {
        return timestamp;
    }
    public void setToken(String token) 
    {
        this.token = token;
    }

    public String getToken() 
    {
        return token;
    }
    public void setInstitutionCode(String institutionCode) 
    {
        this.institutionCode = institutionCode;
    }

    public String getInstitutionCode() 
    {
        return institutionCode;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setDataName(String dataName) 
    {
        this.dataName = dataName;
    }

    public String getDataName() 
    {
        return dataName;
    }
    public void setDataCount(String dataCount) 
    {
        this.dataCount = dataCount;
    }

    public String getDataCount() 
    {
        return dataCount;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setMsg(String msg) 
    {
        this.msg = msg;
    }

    public String getMsg() 
    {
        return msg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId", getLogId())
            .append("ip", getIp())
            .append("name", getName())
            .append("timestamp", getTimestamp())
            .append("token", getToken())
            .append("institutionCode", getInstitutionCode())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("dataName", getDataName())
            .append("dataCount", getDataCount())
            .append("code", getCode())
            .append("msg", getMsg())
            .append("remark", getRemark())
            .toString();
    }
}
